<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="cc.woori.mobile.bean.*" %>
<%@ page import="cc.woori.mobile.PMF" %>
<%@ page import="javax.jdo.Extent" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="com.google.appengine.api.datastore.KeyFactory" %>
<%@ page import="com.google.appengine.api.datastore.Key" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%
	PersistenceManager pm = PMF.get().getPersistenceManager();
	String vid = request.getParameter("vid");
	SimpleDateFormat sdf = new SimpleDateFormat("yyyy년 MM월 dd일");
	
	try{
		if (vid !=null && !vid.equals("")){
			Key key = KeyFactory.stringToKey(vid);
			NoteEntity e = pm.getObjectById(NoteEntity.class, key);
			
%>
<div id="noteinfo_<%=vid%>">
	<div class="toolbar">
		<a href="#" class="back" rel="external">뒤로</a>
		<h1>제목 : <%=e.getTitle()%></h1>
	</div>
	<ul class="rounded">
		<li>
			<p>제목: <%=e.getTitle() %></p>
			<p><%=e.getBody().getValue() %></p>
		</li>
	</ul>
</div>
<%
		}
	}finally{
		if(pm != null){
			pm.close();
		}
	}
%>